package kr.pe.johnkim.carrotpoint.mobile.service;

import kr.pe.johnkim.carrotpoint.mobile.dao.HelloWorldDao;
import kr.pe.johnkim.carrotpoint.mobile.domain.HelloWorldDomain;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 테스트용 Implementation 클래스이다.
 *
 * @author : johnkim <cale9797@gmail.com / Bettersoft, Inc.>
 * @date: 12. 12. 31.
 */
@Service
public class HelloWorldServiceImpl implements HelloWorldService {

    // SLF4J Logging
    private Logger logger = LoggerFactory.getLogger(HelloWorldServiceImpl.class);

    @Autowired
    HelloWorldDao helloWorldDao;

    /**
     * Hello 정보를 가져오는 메소드이다.
     *
     * @param name
     * @return
     */
    public HelloWorldDomain getHello(String name) {
        logger.info("getHello");
        return helloWorldDao.getHello(name);
    }
}
